package com.codeanalysissys.backend.golang.parser;
import com.codeanalysissys.backend.golang.parser.GoParser;
import org.antlr.v4.runtime.BufferedTokenStream;
import org.antlr.v4.runtime.Parser;
import org.antlr.v4.runtime.TokenStream;

@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
public abstract class GoParserBase extends Parser {
    protected GoParserBase(TokenStream input) {
        super(input);
    }


    /**
     * Returns true if the current Token is a closing bracket (")" or "}")
     */
    protected boolean closingBracket() {
        BufferedTokenStream stream = (BufferedTokenStream) _input;
        int prevTokenType = stream.LA(1);

        return prevTokenType == GoParser.R_CURLY || prevTokenType == GoParser.R_PAREN;
    }
}
